import React, { PureComponent } from 'react'
import {
    View,
    Text,
    StyleSheet
} from 'react-native'
import Style from '../utils/style/style'
export default class CellItem extends PureComponent {
    constructor(props) {
        super(props)
    }
    render() {
        const { title } = this.props
        return (
            <View style={[styles.cellWrap]}>
                <View style={styles.label}>
                    <Text style={styles.text}>{title}</Text>
                </View>
            </View>
        )
    }
}

const styles = StyleSheet.create({
    cellWrap: {
        width: Style.width,
        borderStyle:'solid',
        borderColor:'#e5e5e5',
        borderBottomWidth:1,
        borderTopWidth:1
        // backgroundColor:''
    },
    label: { 
        flex:1,
        marginTop:10,
        marginBottom:5,   
        height:22,
        paddingLeft:15,
        paddingRight:15,
    },
    text: {
        fontSize: 14,
        color: '#999'
    }

})